<?php

#    Document   : v_model
#    Created on : May 7, 2011, 1:57:11 AM
#    Author     : ClarkT AKA FalleN
#    Company    : Amodity
#    Web        : http://www.amodity.com
#    Copyright  : 2011
/**

 * @property CI_Loader $load

 * @property CI_Form_validation $form_validation

 * @property CI_Input $input

 * @property CI_Email $email

 * @property CI_DB_active_record $db

 * @property CI_DB_forge $dbforge

 *  @property CI_Session $session

 * @property CI_FTP $ftp

 */

class V_Model extends CI_Model {

    function getimage($param) {
        $this->db->where('name', $param);
        $query = $this->db->get('images');
        if ($query->num_rows() > 0) {
            return $query->row();
        } else {
            return false;
        }
    }

    function recentimage() {
        $query = $this->db->get('images');
        foreach ($query->result() as $row) {
        }
        return $row;
    }

}

?>
